package com.hqyj.fj.java_spring_cloud_account.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.hqyj.fj.entity.account.Resource;
import com.hqyj.fj.entity.common.Result;
import com.hqyj.fj.entity.common.SearchBean;



/**
 * @Description: Resource Service
 * @author: HymanHu
 * @date: 2021年2月21日
 */
public interface ResourceService {

	Result<Resource> insertResource(Resource resource);

	Result<Resource> updateResource(Resource resource);

	Result<Object> deleteResourceById(int id);
	
	Resource getResourceById(int id);
	
	List<Resource> getResourcesByRoleId(int roleId);
	
	PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
